package com.xiaohudie.thread;

/**
 * @Author xiao hu die
 * @Date 2022/2/20 16:18
 * @Version 1.0
 */
public class ShadowTest {
    public int x =0;
    class FirstLevel{
        public int x =1;
        void methodInFirstLevel(int x) {
            /**屏蔽成员变量*/
            System.out.println("x = " + x);
            /**指定为这个对象的this关键字*/
            System.out.println("this.x = " + this.x);
            /**指定为某个public的属性*/
            System.out.println("ShadowTest.this.x = " +ShadowTest.this.x);
        }
    }

}
